Skip to content

📄 Note about Promises for React.lazy - #3944

Open
SiarheiBobryk wants to merge 1 commit into
reactjs:mainfrom
SiarheiBobryk:docs-note-about-promises-for-lazy-components
Open

📄 Note about Promises for React.lazy#3944
SiarheiBobryk wants to merge 1 commit into
reactjs:mainfrom
SiarheiBobryk:docs-note-about-promises-for-lazy-components

Conversation

@SiarheiBobryk

Copy link
Copy Markdown
Contributor

According to the note section of React.lazy

Using React.lazy with dynamic import requires Promises to be available in the JS environment. This requires a polyfill on IE11 and below.

From my perspective, it is worth noting here about polyfilling Promises as well as import it in the example.

According to the note section of
[`React.lazy`](https://reactjs.org/docs/react-api.html#reactlazy)

> Using `React.lazy` with dynamic import requires Promises to be
available in the JS environment. This requires a polyfill on IE11 and
below.

From my perspective, it is worth noting here about polyfilling Promises
as well as import it in the example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants